package com.wu.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.mappers.LabelsMapper;
import com.wu.pojo.Labels;
import com.wu.service.LabelsService;

import java.util.List;

/**
@author sun
@date 2022/3/27 - 23:05
*/
@Service
public class LabelsServiceImpl implements LabelsService{

    @Resource
    private LabelsMapper labelsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return labelsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Labels record) {
        return labelsMapper.insert(record);
    }

    @Override
    public int insertSelective(Labels record) {
        return labelsMapper.insertSelective(record);
    }

    @Override
    public Labels selectByPrimaryKey(Integer id) {
        return labelsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Labels record) {
        return labelsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Labels record) {
        return labelsMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Labels> findLabels(Labels labels) {
        return labelsMapper.findLabels(labels);
    }

}
